Skip to content

Conversation

@rintaro
Copy link
Member

@rintaro rintaro commented Jun 13, 2025

to construct stdlib types easily.

For example, constructing UnsafePointer<Int8> is now:

knownTypes.unsafePointer(knownTypes.int8)

compared to:

SwiftType.nominal(SwiftNominalType(
  nominalTypeDecl: swiftStdlibTypes.unsafePointerDecl,
  genericArguments: [
    .nominal(SwiftNominalType(nominalTypeDecl: swiftStdlibTypes[.int8]))
  ]
))

Rename SwiftStandardLibraryTypes to SwiftStandardLibraryTypeDecls
Rename KnownStandardLibraryType to SwiftStandardLibraryTypeKind

to construct stdlib types easily.
Rename `SwiftStandardLibraryTypes` to `SwiftStandardLibraryTypeDecls`
Rename `KnownStandardLibraryType` to `SwiftStandardLibraryTypeKind`
Copy link
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM. Very good to Swift... prefix them as well, thank you!

@ktoso ktoso merged commit 97770cf into swiftlang:main Jun 15, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants